package com.xx.springboot.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;


/**
 * Created by xiaoxiunique on 2018-10-16.
 */

@RestController
public class TestRedisController {

    @RequestMapping("/test")
    public String test(HttpServletRequest request) {
        String id = request.getSession().getId();
        return "sessionId -> " + id;
    }



}
